package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;

@Mapper
public interface UserMapper {
    //根据openid查找用户
    User getByOpenid(String openid);
    //新增用户
    void insert(User user);
    //根据用户id查找用户
    User getUserById(Long id);
    //用户统计
    Integer getUserCount(LocalDateTime beginTime, LocalDateTime endTime);
}
